Call setDesktopFileName without `.desktop` suffix
authorkleifgch <81602214+kleifgch@users.noreply.github.com>
Sun, 29 Dec 2024 03:07:25 +0000 (04:07 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 2 Jan 2025 10:57:13 +0000 (11:57 +0100)
As clarified in [1], the method expects to be called without the suffix.

[1] https://github.com/qt/qtbase/commit/0c5135a9dfa6140d23d86b001c3054891c22dcb9

Signed-off-by: kleifgch <81602214+kleifgch@users.noreply.github.com>
src/gui/application.cpp

index ab4d4159ee5fbf47b9cf37c017b1c36d1601616d..c5c0f7cb684cb62b8d26c1a12bb6f0a8db2bfc3f 100644 (file)
@@ -230,9 +230,7 @@ Application::Application(int &argc, char **argv)
     //    setOrganizationName(QLatin1String(APPLICATION_VENDOR));
     setOrganizationDomain(QLatin1String(APPLICATION_REV_DOMAIN));
 
-    QString desktopFileName = QString(QLatin1String(LINUX_APPLICATION_ID)
-                                        + QLatin1String(".desktop"));
-    setDesktopFileName(desktopFileName);
+    setDesktopFileName(QString(LINUX_APPLICATION_ID));
 
     setApplicationName(_theme->appName());
     setWindowIcon(_theme->applicationIcon());